<?php

namespace App\Admin\Repositories\Data;

use App\Models\Data\ClickLearn as Model;
use Dcat\Admin\Repositories\EloquentRepository;
use App\Models\Category\Category ;
class ClickLearn extends EloquentRepository
{
    /**
     * Model.
     *
     * @var string
     */
    protected $eloquentClass = Model::class;
    public static function categoryList():array
    {
        return Category::query()->where('parent_id',0)->has('learn_word')->get()->pluck('name','id')->toArray();
    }
}
